
public class Test05{
    public static void main(String[] args){
        int[] arr = {1,3,5,7,9,11,13,10};
        System.out.println(getAvg(arr));
    }
    public static double getAvg(int[] arr){
            double avg = 0;
            double sum = 0;
            for(int i =0 ;i<arr.length;i++){
                sum+=arr[i];
            }
            avg = sum/arr.length;
            return avg;
        } 
        
}